Integrand size = 20, antiderivative size = 261 \[ \int \frac {(a+b \arctan (c+d x))^2}{e+f x} \, dx=-\frac {(a+b \arctan (c+d x))^2 \log \left (\frac {2}{1-i (c+d x)}\right )}{f}+\frac {(a+b \arctan (c+d x))^2 \log \left (\frac {2 d (e+f x)}{(d e+i f-c f) (1-i (c+d x))}\right )}{f}+\frac {i b (a+b \arctan (c+d x)) \operatorname {PolyLog}\left (2,1-\frac {2}{1-i (c+d x)}\right )}{f}-\frac {i b (a+b \arctan (c+d x)) \operatorname {PolyLog}\left (2,1-\frac {2 d (e+f x)}{(d e+i f-c f) (1-i (c+d x))}\right )}{f}-\frac {b^2 \operatorname {PolyLog}\left (3,1-\frac {2}{1-i (c+d x)}\right )}{2 f}+\frac {b^2 \operatorname {PolyLog}\left (3,1-\frac {2 d (e+f x)}{(d e+i f-c f) (1-i (c+d x))}\right )}{2 f} \]
-(a+b*arctan(d*x+c))^2*ln(2/(1-I*(d*x+c)))/f+(a+b*arctan(d*x+c))^2*ln(2*d* (f*x+e)/(d*e+I*f-c*f)/(1-I*(d*x+c)))/f+I*b*(a+b*arctan(d*x+c))*polylog(2,1 -2/(1-I*(d*x+c)))/f-I*b*(a+b*arctan(d*x+c))*polylog(2,1-2*d*(f*x+e)/(d*e+I *f-c*f)/(1-I*(d*x+c)))/f-1/2*b^2*polylog(3,1-2/(1-I*(d*x+c)))/f+1/2*b^2*po lylog(3,1-2*d*(f*x+e)/(d*e+I*f-c*f)/(1-I*(d*x+c)))/f
\[ \int \frac {(a+b \arctan (c+d x))^2}{e+f x} \, dx=\int \frac {(a+b \arctan (c+d x))^2}{e+f x} \, dx \]
Time = 0.38 (sec) , antiderivative size = 288, normalized size of antiderivative = 1.10, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {5570, 27, 5383}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {(a+b \arctan (c+d x))^2}{e+f x} \, dx\) |
\(\Big \downarrow \) 5570 |
\(\displaystyle \frac {\int \frac {d (a+b \arctan (c+d x))^2}{d \left (e-\frac {c f}{d}\right )+f (c+d x)}d(c+d x)}{d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \int \frac {(a+b \arctan (c+d x))^2}{f (c+d x)-c f+d e}d(c+d x)\) |
\(\Big \downarrow \) 5383 |
\(\displaystyle -\frac {i b (a+b \arctan (c+d x)) \operatorname {PolyLog}\left (2,1-\frac {2 (d e-c f+f (c+d x))}{(d e-c f+i f) (1-i (c+d x))}\right )}{f}+\frac {(a+b \arctan (c+d x))^2 \log \left (\frac {2 (f (c+d x)-c f+d e)}{(1-i (c+d x)) (-c f+d e+i f)}\right )}{f}+\frac {i b \operatorname {PolyLog}\left (2,1-\frac {2}{1-i (c+d x)}\right ) (a+b \arctan (c+d x))}{f}-\frac {\log \left (\frac {2}{1-i (c+d x)}\right ) (a+b \arctan (c+d x))^2}{f}+\frac {b^2 \operatorname {PolyLog}\left (3,1-\frac {2 (d e-c f+f (c+d x))}{(d e-c f+i f) (1-i (c+d x))}\right )}{2 f}-\frac {b^2 \operatorname {PolyLog}\left (3,1-\frac {2}{1-i (c+d x)}\right )}{2 f}\) |
-(((a + b*ArcTan[c + d*x])^2*Log[2/(1 - I*(c + d*x))])/f) + ((a + b*ArcTan [c + d*x])^2*Log[(2*(d*e - c*f + f*(c + d*x)))/((d*e + I*f - c*f)*(1 - I*( c + d*x)))])/f + (I*b*(a + b*ArcTan[c + d*x])*PolyLog[2, 1 - 2/(1 - I*(c + d*x))])/f - (I*b*(a + b*ArcTan[c + d*x])*PolyLog[2, 1 - (2*(d*e - c*f + f *(c + d*x)))/((d*e + I*f - c*f)*(1 - I*(c + d*x)))])/f - (b^2*PolyLog[3, 1 - 2/(1 - I*(c + d*x))])/(2*f) + (b^2*PolyLog[3, 1 - (2*(d*e - c*f + f*(c + d*x)))/((d*e + I*f - c*f)*(1 - I*(c + d*x)))])/(2*f)
3.1.34.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_.) + ArcTan[(c_.)*(x_)]*(b_.))^2/((d_) + (e_.)*(x_)), x_Symbol] :> Simp[(-(a + b*ArcTan[c*x])^2)*(Log[2/(1 - I*c*x)]/e), x] + (Simp[(a + b*Arc Tan[c*x])^2*(Log[2*c*((d + e*x)/((c*d + I*e)*(1 - I*c*x)))]/e), x] + Simp[I *b*(a + b*ArcTan[c*x])*(PolyLog[2, 1 - 2/(1 - I*c*x)]/e), x] - Simp[I*b*(a + b*ArcTan[c*x])*(PolyLog[2, 1 - 2*c*((d + e*x)/((c*d + I*e)*(1 - I*c*x)))] /e), x] - Simp[b^2*(PolyLog[3, 1 - 2/(1 - I*c*x)]/(2*e)), x] + Simp[b^2*(Po lyLog[3, 1 - 2*c*((d + e*x)/((c*d + I*e)*(1 - I*c*x)))]/(2*e)), x]) /; Free Q[{a, b, c, d, e}, x] && NeQ[c^2*d^2 + e^2, 0]
Int[((a_.) + ArcTan[(c_) + (d_.)*(x_)]*(b_.))^(p_.)*((e_.) + (f_.)*(x_))^(m _.), x_Symbol] :> Simp[1/d Subst[Int[((d*e - c*f)/d + f*(x/d))^m*(a + b*A rcTan[x])^p, x], x, c + d*x], x] /; FreeQ[{a, b, c, d, e, f, m, p}, x] && I GtQ[p, 0]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 4.59 (sec) , antiderivative size = 1877, normalized size of antiderivative = 7.19
method | result | size |
derivativedivides | \(\text {Expression too large to display}\) | \(1877\) |
default | \(\text {Expression too large to display}\) | \(1877\) |
parts | \(\text {Expression too large to display}\) | \(1998\) |
1/d*(a^2*d*ln(c*f-d*e-f*(d*x+c))/f-b^2*d*(-ln(c*f-d*e-f*(d*x+c))/f*arctan( d*x+c)^2+2/f*(1/2*arctan(d*x+c)^2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+(1+I*(d*x+c))^2/ (1+(d*x+c)^2)))^2)*arctan(d*x+c)^2-1/2*I*arctan(d*x+c)*polylog(2,-(1+I*(d* x+c))^2/(1+(d*x+c)^2))+1/4*polylog(3,-(1+I*(d*x+c))^2/(1+(d*x+c)^2))-1/2*f /(c*f-d*e+I*f)*arctan(d*x+c)*polylog(2,(c*f-d*e+I*f)*(1+I*(d*x+c))^2/(1+(d *x+c)^2)/(d*e+I*f-c*f))-1/2*I*f/(c*f-d*e+I*f)*arctan(d*x+c)^2*ln(1-(c*f...
\[ \int \frac {(a+b \arctan (c+d x))^2}{e+f x} \, dx=\int { \frac {{\left (b \arctan \left (d x + c\right ) + a\right )}^{2}}{f x + e} \,d x } \]
Timed out. \[ \int \frac {(a+b \arctan (c+d x))^2}{e+f x} \, dx=\text {Timed out} \]
\[ \int \frac {(a+b \arctan (c+d x))^2}{e+f x} \, dx=\int { \frac {{\left (b \arctan \left (d x + c\right ) + a\right )}^{2}}{f x + e} \,d x } \]
a^2*log(f*x + e)/f + integrate(1/16*(12*b^2*arctan(d*x + c)^2 + b^2*log(d^ 2*x^2 + 2*c*d*x + c^2 + 1)^2 + 32*a*b*arctan(d*x + c))/(f*x + e), x)
Timed out. \[ \int \frac {(a+b \arctan (c+d x))^2}{e+f x} \, dx=\text {Timed out} \]
Timed out. \[ \int \frac {(a+b \arctan (c+d x))^2}{e+f x} \, dx=\int \frac {{\left (a+b\,\mathrm {atan}\left (c+d\,x\right )\right )}^2}{e+f\,x} \,d x \]